package com.yuyuan.thumb.util;

import com.yuyuan.thumb.constant.ThumbConstant;

public class RedisKeyUtil {

    /**
     * 获取用户点赞的博客key
     * @param userId
     * @return
     */
    public static String getUserThumbKey(Long userId){
        return ThumbConstant.USER_THUMB_KEY_PREFIX + userId;
    }

    /**
     * 获取临时点赞记录key
     * @param time
     * @return
     */
    public static String getTempThumbKey(String time){
        return ThumbConstant.TEMP_THUMB_KEY_PREFIX.formatted(time);
    }
}
